﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Acoris.Document
{
    /// <summary>
    /// 表示AML文档内容
    /// </summary>
    public sealed class AMLContent
    {
        private string m_document;


        /// <summary>
        /// 使用未格式化的文档内容初始化AMLContent
        /// </summary>
        /// <param name="document">未格式化的文档</param>
        internal AMLContent(string document)
        {
            if (string.IsNullOrEmpty(document)) {
                throw new ArgumentNullException();
            }
            m_document = document;
        }

        public AMLContent() { }

        /// <summary>
        /// 返回当前文档
        /// </summary>
        public string Document {
            get { return m_document; }
        }
    }
}
